package com.greenleaf.serviceImpl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.greenleaf.dao.PdtClassDao;
import com.greenleaf.entity.PdtClass;
import com.greenleaf.entity.SearchCon;
import com.greenleaf.service.PdtClassService;
@Service("pdtClassService")
public class PdtClassServiceImpl implements PdtClassService{
	@Resource
	private PdtClassDao pdtClassDao;
	
	@Override
	public List<PdtClass> getAllPdtClass(SearchCon searchCon) {
		return pdtClassDao.getAllPdtClass(searchCon);
	}
	@Override
	public int getTotalPdtClass(SearchCon searchCon) {
		return pdtClassDao.getTotalPdtClass(searchCon);
	}

	@Override
	public int addPdtClass(PdtClass pdtClass) {
		return pdtClassDao.addPdtClass(pdtClass);
	}

	@Override
	public int updatePdtClass(PdtClass pdtClass) {
		return pdtClassDao.updatePdtClass(pdtClass);
	}

	@Override
	public int delPdtClass(int pdtClassId) {
		return pdtClassDao.delPdtClass(pdtClassId);
	}

}
